<!DOCTYPE html>
<html style="overflow:hidden;">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>test</title>
		<meta name="description" content="Kenny is a Dashboard & Admin Site Responsive Template by hencework." />
		<meta name="keywords" content="admin, admin dashboard, admin template, cms, crm, Kenny Admin, kennyadmin, premium admin templates, responsive admin, sass, panel, software, ui, visualization, web app, application" />
		<meta name="author" content="hencework"/>
		<!-- Favicon -->
		<link rel="shortcut icon" href="/favicon.ico">
		<link rel="icon" href="/favicon.ico" type="image/x-icon">
		<!-- Fancy-Buttons CSS -->
		<link href="__STATIC__/admin/dist/css/fancy-buttons.css" rel="stylesheet" type="text/css">
		<!-- Custom CSS -->
		<link href="__STATIC__/admin/dist/css/style.css" rel="stylesheet" type="text/css">
		<!--up更改-->
		<link rel="stylesheet" href="__STATIC__/admin/dist/css/modify-up.css" />
		<style>
			.page-wrapper{padding:60px 0px 0px 15px;}
			.container-fluid{padding-left:0;}
			/* .page-wrapper .container-fluid{padding-right:30px;} */
			html{
				float: left;
				width: 100%;
			}
			#helangFrame{
				position: fixed;
				top: 121px;
				left: 133px;
				right: 0;
				bottom: 0;
			}
			@media (max-width: 800px){
				#helangFrame {
					left: 0;
				}
			}

			.usernames {
				/* float: right; */
				height: 40px;
				line-height: 40px;
				font-size: 16px;
				border-radius: 8px;
				margin-top: 10px;
				padding: 0 5px;
				background-color: #f7f7f9;
			}

			.popup_but_msg{
				float: left;
				width: 150px;
				height: 40px;
				border: 4px;
				background-color: #566FC9;
				text-align: center;
				line-height: 40px;
				color: #fff;
				margin-left: 75px;
				margin-bottom: 10px;
				cursor: pointer;
			}
			#popup_5 p{
				margin: 5px 0;
			}
			#popup_5 span{
				display: inline-block;
				width: 80px;
			}
		</style> 
	</head>
	<body>    
		<!--Preloader-->
		<div class="preloader-it">
			<div class="la-anim-1"></div>
		</div>
		<!--/Preloader-->
		<div class="wrapper">
			<!-- Top Menu Items -->
			<nav class="navbar navbar-inverse navbar-fixed-top">
				<a id="toggle_nav_btn" class="toggle-left-nav-btn inline-block mr-20 pull-left" href="javascript:void(0);"><i class="fa fa-bars"></i></a>
				<a href=""><img class="brand-img pull-left" src="__STATIC__/admin/dist/img/logo.png" alt="brand"/></a>
				<ul class="nav navbar-right top-nav pull-right">
					<li>
						<a href="javascript:void(0);" data-toggle="collapse" data-target="#site_navbar_search">
						<i class="fa fa-search top-nav-icon"></i>
						</a> 
					</li>
					<li class="dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-bell top-nav-icon"></i><span class="top-nav-icon-badge" id="count">{$count}</span></a>
						<ul  class="dropdown-menu alert-dropdown" data-dropdown-in="fadeIn" data-dropdown-out="fadeOut">
							<li>
								<div class="streamline message-box message-nicescroll-bar" id="annonce-box">
									{foreach name="announceList" item="v" key="key" }
									<div class="sl-item" style="color: {$v['color']}">
										<!-- <div class="sl-avatar avatar avatar-sm avatar-circle">
											<img class="img-responsive img-circle" src="__STATIC__/admin/dist/img/user.png" alt="avatar"/>
										</div> -->
										<div class="sl-content">
											<a href="/admin/Index/readthis?id={$v['id']}" target="blank;" class="inline-block capitalize-font  pull-left" style="color: {$v['color']}">{$v['title']}
												{if condition="(empty($v['is_sign']))"}
													<span class="inline-block font-12  pull-right" style="color: red;">(待确认)</span>
												{/if}
											</a>
											<span class="inline-block font-12  pull-right">{$v['add_time']}</span>
											<div class="clearfix"></div>
											<div style="max-width:250px;max-height:30px;width:auto;overflow: hidden;text-overflow: ellipsis;">{$v['content']}</div>
										</div>
									</div>
									<hr/>
									{/foreach}
									<a href="/admin/Index/annonceList" target="_blank"><span class="inline-block font-12  pull-right" style="margin-right: 40%;">查看更多</span></a>
								</div>
							</li>
						</ul>
					</li>
					<li class="dropdown">

						<a href="#" class="dropdown-toggle pr-0" data-toggle="dropdown">
							<div class="usernames">{:Session("user.username")}</div>
						</a>
						<ul class="dropdown-menu user-auth-dropdown" data-dropdown-in="fadeIn" data-dropdown-out="fadeOut">
							<!-- <li>
								<a href="#"><i class="fa fa-fw fa-user"></i> Profile</a>
							</li>
							<li>
								<a href="#"><i class="fa fa-fw fa-credit-card-alt"></i> my balance</a>
							</li>
							<li>
								<a href="#"><i class="fa fa-fw fa-envelope"></i> Inbox</a>
							</li>
							<li>
								<a href="#"><i class="fa fa-fw fa-gear"></i> Settings</a>
							</li>
							<li class="divider"></li> -->
							<li>
								<a href="javascript:void(0)" id="change-pwd"><i class="fa fa-fw fa-power-off"></i> 修改密码</a>
							</li>
							<li>
								<a href="javascript:void(0)" id="log-out"><i class="fa fa-fw fa-power-off"></i> 退出登陆</a>
							</li>
						</ul>
					</li>
				</ul>
				<div class="collapse navbar-search-overlap" id="site_navbar_search">
					<div role="search" id="form">
						<div class="form-group mb-0">
							<div class="input-search">
								<div class="input-group">	
									<input type="text" name="str" class="form-control pl-30" id="str" placeholder="Search">
									<span class="input-group-addon pr-30">
									<a  href="javascript:void(0)" class="close-input-overlay" data-target="#site_navbar_search" data-toggle="collapse" aria-label="Close" aria-expanded="true"><i class="fa fa-times"></i></a>
									</span> 
								</div>
							</div>
						</div>
					</div>
				</div>
			</nav>
			<!-- /Top Menu Items -->
			<!-- Left Sidebar Menu -->
			<div class="fixed-sidebar-left">
				<ul class="nav navbar-nav side-nav nicescroll-bar" id="helangNav">



				</ul>
			</div>
			<!-- /Left Sidebar Menu -->

			<!-- Right Sidebar Menu -->
			<div class="fixed-sidebar-right">
				<ul class="right-sidebar nicescroll-bar">
					<li>
						<div  class="tab-struct custom-tab-1">
							<ul role="tablist" class="nav nav-tabs" id="right_sidebar_tab">
								<li class="active" role="presentation"><a aria-expanded="true"  data-toggle="tab" role="tab" id="chat_tab_btn" href="#chat_tab">chat</a></li>
								<li role="presentation" class=""><a  data-toggle="tab" id="messages_tab_btn" role="tab" href="#messages_tab" aria-expanded="false">messages</a></li>
								<li role="presentation" class=""><a  data-toggle="tab" id="todo_tab_btn" role="tab" href="#todo_tab" aria-expanded="false">todo</a></li>
							</ul>
							<div class="tab-content" id="right_sidebar_content">
								<div  id="chat_tab" class="tab-pane fade active in" role="tabpanel">
									<div class="chat-cmplt-wrap">
										<div class="chat-box-wrap">
											<form role="search">
												<div class="input-group mb-15">
													<input type="text" id="example-input1-group2" name="example-input1-group2" class="form-control" placeholder="Search">
													<span class="input-group-btn">
													<button type="button" class="btn  btn-default"><i class="fa fa-search"></i></button>
													</span>
												</div>
											</form>
											<ul class="chat-list-wrap">
												<li class="chat-list">
													<div class="chat-body">
														<a  href="javascript:void(0)">
															<div class="chat-data">
																<img class="user-img img-circle"  src="__STATIC__/admin/dist/img/user.png" alt="user"/>
																<div class="user-data">
																	<span class="name block capitalize-font">ryan gosling</span>
																	<span class="time block txt-grey">2pm</span>
																</div>
																<div class="status away"></div>
																<div class="clearfix"></div>
															</div>
														</a>
														<a  href="javascript:void(0)">
															<div class="chat-data">
																<img class="user-img img-circle"  src="__STATIC__/admin/dist/img/user1.png" alt="user"/>
																<div class="user-data">
																	<span class="name block capitalize-font">ryan gosling</span>
																	<span class="time block txt-grey">1pm</span>
																</div>
																<div class="status offline"></div>
																<div class="clearfix"></div>
															</div>
														</a>
														<a  href="javascript:void(0)">
															<div class="chat-data">
																<img class="user-img img-circle"  src="__STATIC__/admin/dist/img/user2.png" alt="user"/>
																<div class="user-data">
																	<span class="name block capitalize-font">ryan gosling</span>
																	<span class="time block txt-grey">2pm</span>
																</div>
																<div class="status online"></div>
																<div class="clearfix"></div>
															</div>
														</a>
														<a  href="javascript:void(0)">
															<div class="chat-data">
																<img class="user-img img-circle"  src="__STATIC__/admin/dist/img/user3.png" alt="user"/>
																<div class="user-data">
																	<span class="name block capitalize-font">ryan gosling</span>
																	<span class="time block txt-grey">2pm</span>
																</div>
																<div class="status online"></div>
																<div class="clearfix"></div>
															</div>
														</a>
														<a  href="javascript:void(0)">
															<div class="chat-data">
																<img class="user-img img-circle"  src="__STATIC__/admin/dist/img/user4.png" alt="user"/>
																<div class="user-data">
																	<span class="name block capitalize-font">ryan gosling</span>
																	<span class="time block txt-grey">2pm</span>
																</div>
																<div class="status online"></div>
																<div class="clearfix"></div>
															</div>
														</a>
													</div>
												</li>
											</ul>
										</div>
										<div class="recent-chat-box-wrap">
											<div class="panel panel-success card-view">
												<div class="panel-heading mb-20">
													<a class="goto-chat-list txt-light" href="javascript:void(0);"><i class="ti-angle-left"></i></a>
													<div class="text-center">
														<h6 class="panel-title txt-light">Alan Gilchrist</h6>
													</div>
													<div class="clearfix"></div>
												</div>
												<div class="panel-wrapper collapse in">
													<div class="panel-body">
														<div class="chat-content">
															<ul>
																<li class="friend">
																	<div class="friend-msg-wrap">
																		<img class="user-img img-circle block pull-left"  src="__STATIC__/admin/dist/img/user.png" alt="user"/>
																		<div class="msg pull-left">A forest is a large area of land covered with trees
																			<div class="msg-per-detail mt-5">
																				<span class="msg-per-name pr-5 txt-success">ryan</span>
																				<span class="msg-time txt-grey">2:30pm</span>
																			</div>
																		</div>
																		<div class="clearfix"></div>
																	</div>
																</li>
																<li class="self">
																	<div class="self-msg-wrap">
																		<div class="msg block pull-right"> Provide ecosystem...
																			<div class="msg-per-detail mt-5">
																				<span class="msg-time txt-grey">2:30pm</span>
																			</div>
																		</div>
																		<div class="clearfix"></div>
																	</div>
																</li>
																<li class="friend">
																	<div class="friend-msg-wrap">
																		<img class="user-img img-circle block pull-left"  src="__STATIC__/admin/dist/img/user.png" alt="user"/>
																		<div class="msg pull-left"> Account for 75% of the gross primary productivity of them Earth's biosphere
																			<div class="msg-per-detail mt-5">
																				<span class="msg-per-name pr-5 txt-success">ryan</span>
																				<span class="msg-time txt-grey">2:30pm</span>
																			</div>
																		</div>
																		<div class="clearfix"></div>
																	</div>
																</li>
															</ul>
														</div>
														<div class="input-group">
															<div class="input-group-btn">
																<div class="dropup">
																	<button type="button" class="btn  btn-default  dropdown-toggle" data-toggle="dropdown" ><i class="fa fa-smile-o"></i></button>
																	<ul class="dropdown-menu dropdown-menu-right">
																		<li><a href="javascript:void(0)">Action</a></li>
																		<li><a href="javascript:void(0)">Another action</a></li>
																		<li class="divider"></li>
																		<li><a href="javascript:void(0)">Separated link</a></li>
																	</ul>
																</div>
															</div>

															<input type="text" id="input_msg_send" name="send-msg" class="form-control" placeholder="Type something">
															<div class="input-group-btn">
																<div class="fileupload btn  btn-default"><i class="fa fa-paperclip"></i>
																	<input type="file" class="upload">
																</div>
															</div>
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>

								<div id="messages_tab" class="tab-pane fade" role="tabpanel">
									<div class="message-box-wrap">
										<div class="streamline message-box">
											<div class="sl-item">
												<div class="sl-avatar avatar avatar-sm avatar-circle">
													<img class="img-responsive img-circle" src="__STATIC__/admin/dist/img/user.png" alt="avatar"/>
												</div>
												<div class="sl-content">
													<a href="javascript:void(0)" class="inline-block capitalize-font  mb-5 pull-left">Sandy Doe</a>
													<span class="inline-block font-12 mb-5 pull-right">12/10/16</span>
													<div class="clearfix"></div>
													<p>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit</p>
												</div>
											</div>
											<hr/>
											<div class="sl-item">
												<div class="sl-avatar avatar avatar-sm avatar-circle">
													<img class="img-responsive img-circle" src="__STATIC__/admin/dist/img/user1.png" alt="avatar"/>
												</div>
												<div class="sl-content">
													<a href="javascript:void(0)" class="inline-block capitalize-font  mb-5 pull-left">Sandy Doe</a>
													<span class="inline-block font-12 mb-5 pull-right">2pm</span>
													<div class="clearfix"></div>
													<p>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit</p>
												</div>
											</div>
											<hr/>
											<div class="sl-item">
												<div class="sl-avatar avatar avatar-sm avatar-circle">
													<img class="img-responsive img-circle" src="__STATIC__/admin/dist/img/user2.png" alt="avatar"/>
												</div>
												<div class="sl-content">
													<a href="javascript:void(0)" class="inline-block capitalize-font  mb-5 pull-left">Sandy Doe</a>
													<span class="inline-block font-12 mb-5 pull-right">1pm</span>
													<div class="clearfix"></div>
													<p>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit</p>
												</div>
											</div>
											<hr/>
											<div class="sl-item">
												<div class="sl-avatar avatar avatar-sm avatar-circle">
													<img class="img-responsive img-circle" src="__STATIC__/admin/dist/img/user3.png" alt="avatar"/>
												</div>
												<div class="sl-content">
													<a href="javascript:void(0)" class="inline-block capitalize-font  mb-5 pull-left">Sandy Doe</a>
													<span class="inline-block font-12 mb-5 pull-right">1pm</span>
													<div class="clearfix"></div>
													<p>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit</p>
												</div>
											</div>
											<hr/>
											<div class="sl-item">
												<div class="sl-avatar avatar avatar-sm avatar-circle">
													<img class="img-responsive img-circle" src="__STATIC__/admin/dist/img/user4.png" alt="avatar"/>
												</div>
												<div class="sl-content">
													<a href="javascript:void(0)" class="inline-block capitalize-font  mb-5 pull-left">Sandy Doe</a>
													<span class="inline-block font-12 mb-5 pull-right">1pm</span>
													<div class="clearfix"></div>
													<p>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit</p>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div  id="todo_tab" class="tab-pane fade" role="tabpanel">
									<div class="todo-box-wrap">
										<!-- Todo-List -->
										<ul class="todo-list">
											<li class="todo-item">
												<div class="checkbox checkbox-default">
													<input type="checkbox" id="checkbox01"/>
													<label for="checkbox01">Record The First Episode Of HTML Tutorial</label>
												</div>
											</li>
											<li class="todo-item">
												<div class="checkbox checkbox-pink">
													<input type="checkbox" id="checkbox02"/>
													<label for="checkbox02">Prepare The Conference Schedule</label>
												</div>
											</li>
											<li class="todo-item">
												<div class="checkbox checkbox-warning">
													<input type="checkbox" id="checkbox03" checked/>
													<label for="checkbox03">Decide The Live Discussion Time</label>
												</div>
											</li>
											<li class="todo-item">
												<div class="checkbox checkbox-success">
													<input type="checkbox" id="checkbox04" checked/>
													<label for="checkbox04">Prepare For The Next Project</label>
												</div>
											</li>
											<li class="todo-item">
												<div class="checkbox checkbox-danger">
													<input type="checkbox" id="checkbox05" checked/>
													<label for="checkbox05">Finish Up AngularJs Tutorial</label>
												</div>
											</li>
											<li class="todo-item">
												<div class="checkbox checkbox-purple">
													<input type="checkbox" id="checkbox06" checked/>
													<label for="checkbox06">Finish Infinity Project</label>
												</div>
											</li>
										</ul>
										<!-- /Todo-List -->
									</div>
								</div>
							</div>
						</div>
					</li>
				</ul>
			</div>
			<!-- /Right Sidebar Menu -->
			<!-- Main Content -->
			<div class="page-wrapper" >
				<div class="container-fluid" style="padding-left:0;">

					<!-- Title -->
					<div class="row heading-bg bg-yellow">
						<div class="col-xs-12">
							<ul class="heading-items" id="helangTab" data-url="{$url.url}" data-name="{$url.menu}">
								<!--<li role="presentation" class="active"><a href="javascript:;"> 首页  </a> </li>-->
							</ul>
						</div>
						<!--<div class="search-btn"><i class="fa fa-search top-nav-icon"></i> 搜索</div>-->
						<!-- Breadcrumb -->
						<!--<div class="search-Conditions col-xs-12">
							<p>編號: <input type="text" name="bianma" value=""/></p>
							<p>名稱: <input type="text" name="name" value=""/></p>
							<p>英文名稱: <input type="text" name="Egname" value=""/></p>
							<p><input type="button" name="btn" value="提交"/></p>
						</div>-->
						<!-- /Breadcrumb -->
					</div>
					<!-- /Title -->
					<div id="helangFrame">

					</div>
					<!-- Row -->

				</div>
				<!-- Footer -->
				<!-- <footer class="footer container-fluid pl-30 pr-30">
					<div class="row">
						<div class="col-sm-5">
							<a href="index.html" class="brand mr-30"><img src="dist/img/logo-sm.png" alt="logo"/></a>
							<ul class="footer-link nav navbar-nav">
								<li class="logo-footer"><a href="#">help</a></li>
								<li class="logo-footer"><a href="#">terms</a></li>
								<li class="logo-footer"><a href="#">privacy</a></li>
							</ul>
						</div>
						<div class="col-sm-7 text-right">
							<p>2016 &copy; Kenny. Pampered by Hencework</p>
						</div>
					</div>
				</footer> -->
				<!-- /Footer -->

			</div>
			<!-- /Main Content -->
		</div>
		<!-- /#wrapper -->
		
		<!-- JavaScript -->
		<!--提示弹窗-->
		<div class="popup" id="popup_5">
			<div class="popup_top">修改登陆密码</div>
			<div class="popup_cont">
				<form action="" method="post" id="PassWord">
					<p><span>原密码</span><input type="password" name="oldPass"></p>
					<p><span>新密码</span><input type="password" name="newPass"></p>
					<p><span>确定密码</span><input type="password" name="confirmPass"></p>
				</form>
			</div>
			<div class="popup_butA" onclick="changePwd(this)"  name="popup_but5">确定</div>
			<div class="popup_butB">取消</div>
		</div>
		<!--提示弹窗-->
		<div class="popup" id="popup_6">
			<div class="popup_top">提示</div>
			<div class="popup_cont">保存成功！</div>
			<div class="popup_but_msg">确定</div>
		</div>
		<!-- jQuery -->
		<script src="__STATIC__/admin/dist/js/jquery.min.js"></script>
		
		<!-- Bootstrap Core JavaScript -->
		<script src="__STATIC__/admin/dist/js/bootstrap.min.js"></script>
		<!-- Slimscroll JavaScript -->
		<script name="slimsroll" src="__STATIC__/admin/dist/js/jquery.slimscroll.js"></script>
	
	<!-- Fancy Dropdown JS -->
	<script src="__STATIC__/admin/dist/js/dropdown-bootstrap-extended.js"></script>		
		<!-- Init JavaScript -->
		<script src="__STATIC__/admin/dist/js/public.js"></script>
		
		<script src="__STATIC__/admin/dist/js/init.js"></script>
		<script src="__STATIC__/admin/dist/js/dataTab.js"></script>
		{include file='admin@common/alert'/}
	</body>
</html> 

<script>
	// 定时获取公告数据
     function ajax_send(func){
        var query = new Object();
        query.id = "123";
        $.ajax({
            type:"POST",
            data:query,
            url:"/admin/Index/common",
            datatype:"json",
            beforeSend:function(){},
	    	complete:function(){},
            success:function(res){
                getAnnonce(res);
            }
        });
    }
    function getAnnonce(data){
    	if(data.arr.length>0) {
    		var str='';
    		for (var i = 0; i < data.arr.length; i++) {
    			var sta='';
    			if(data.arr[i].is_sign=='0'){
    				sta='<span class="inline-block font-12  pull-right" style="color: red;">(待确认)</span>';
    			}
    			str+='<div class="sl-item" style="color: '+data.arr[i].color+'">'
					+'<div class="sl-content">'
						+'<a href="/admin/Index/readthis?id='+data.arr[i].id+'" target="blank;" class="inline-block capitalize-font  pull-left" style="color: '+data.arr[i].color+'">'+data.arr[i].title+''
						+sta
						+'</a>'
						+'<span class="inline-block font-12  pull-right">'+data.arr[i].add_time+'</span>'
						+'<div class="clearfix"></div>'
						+'<div style="max-width:250px;max-height:30px;width:auto;overflow: hidden;text-overflow: ellipsis;">'+data.arr[i].content+'</div>'
					+'</div>'
				+'</div>'
				+'<hr/>';
    		}
    		str+='<a href="/admin/Index/annonceList" target="blank;"><span class="inline-block font-12  pull-right" style="margin-right: 40%;">查看更多</span></a>';
    		$('#annonce-box').html(str);
    	}
    	$('#count').html(data.count);
    }
    (function(){

        var interval = setInterval(function(){
                    ajax_send(function(res){
                        clearInterval(interval);
                });
            },30000); //每个30秒调用一次函数

    })();    
</script>


<script type="text/javascript">
//递归渲染菜单
function getSon(data){
	if(data.length>0) {	//判断传过来的是否存在值
		var html = "";
		for (var i = 0; i < data.length; i++) {
			style = data[i].is_performance == "1" ? '' : "style='color:#F8531E'";
			if(data[i].son.length>0) {
				html += '<li lv="B"><a href="javascript:" onclick="return false;" data-type="1" data-url="" data-toggle="collapse" data-target="#dashboard_dr'+data[i].menu_id+'"><i class="'+data[i].icon+' mr-10"></i><span '+style+'>'+data[i].hk_name+'</span><span class="pull-right"><i class="fa fa-fw fa-angle-down"></i></span></a><ul id="dashboard_dr'+data[i].menu_id+'" class="collapse collapse-level-1">'+getSon(data[i].son)+'</ul></li>';
			} else {
				if (data[i].menu_url == "/admin/Api/apiSuppPrice") { // api供应商查价单独打开标签页
					html += '<li lv="B"><a href="'+data[i].menu_url+'" target="blank;"><span '+style+'>'+data[i].hk_name+'</span></a></li>';//组装html代码
				}else{
					html += '<li lv="B"><a href="javascript:" data-url="'+data[i].menu_url+'"><span '+style+'>'+data[i].hk_name+'</span></a></li>';//组装html代码
				}

			}
		}
		return html;
	}
	return "";
}

function changePwd(obj) {
	var data = "oldPass="+$('input[name="oldPass"]').val()+"&newPass="+$('input[name="newPass"]').val()+"&confirmPass="+$('input[name="confirmPass"]').val();
	$.ajax({
		type:"POST",
		url :"/admin/User/changePassword",
		data:data,
		success:function(data){
			if(data.code == 1){
				window.location.href = "/admin/login/login";
			}else{
				vinfo_msg(data.msg);
			}
		}
	})
}

//提示信息弹窗
function vinfo_msg(data){
	$(".maksa").css("width",$(window).width());
	$(".maksa").css("height",$(document).height());
	$(".maksa").show();
	$(".popup").css("left",($(window).width()-$(".popup").width())/2);
	$(".popup").css("top",($(window).height()-$(".popup").height())/2);
	$("#popup_6").show();  //简单的触发弹窗事件如果要触发自己想要的弹窗 请修改选择器为ID选择器 两种弹框
	$('#popup_6 .popup_cont').html(data);
}

//进来就直接请求后端渲染菜单
$(function(){
	$.ajax({
		type: "POST",
		url : "/admin/index/common?type=menu",
		data: {},
		success:function(data){
			console.log(data);
			if(data.length==1) {
				$("#helangNav").attr("style",{"width":""});
			}
			for (var i = 0; i < data.length; i++) {
				if(data[i].son.length>0) {
					$("#helangNav").append('<li lv="A" ><a href="javascript:" data-url="'+data[i].menu_url+'" data-type="1" data-toggle="collapse" data-target="#dashboard_dr'+data[i].menu_id+'"><i class="'+data[i].icon+' mr-10"></i>'+data[i].hk_name+'<span class="pull-right"><i class="fa fa-fw fa-angle-down"></i></span></a><ul id="dashboard_dr'+data[i].menu_id+'" class="collapse collapse-level-1">'+getSon(data[i].son)+'</ul></li>');
				} else {
					$("#helangNav").append('<li><a href="javascript:" data-url="'+data[i].menu_url+'"><i class="'+data[i].icon+' mr-10"></i>'+data[i].hk_name+'</a></li>');
				}
			}
			$("li[lv='B']").each(function(){
				if($("li[lv='B']").find("li").attr("lv")=="B") {
					$("li[lv='B']").find("li[lv='B']").css("text-indent","30px");
				}
			})
		}
	})
	
	//使用enter键事件
	$('#form').keypress(function(event){ 
		var keynum = (event.keyCode ? event.keyCode : event.which);      
		if(keynum == '13'){ 
			var str = $("#str").val();
			$.ajax({
				type: "POST",
				url : "/admin/user/searchMenu",
				data: {'str':str},
				success:function(data){	
					console.log(data);
					$("#helangNav").children("li").remove();//删除helangNav下所有的li标签
					for (var i = 0; i < data.length; i++) {
						if(data[i].son.length>0) {
							$("#helangNav").append('<li><a href="javascript:void(0);"  data-url="'+data[i].menu_url+'" data-toggle="collapse" data-target="#dashboard_dr'+data[i].menu_id+'"><i class="'+data[i].icon+' mr-10"></i>'+data[i].hk_name+'<span class="pull-right"><i class="fa fa-fw fa-angle-down"></i></span></a><ul id="dashboard_dr'+data[i].menu_id+'" class="collapse collapse-level-1">'+getSon(data[i].son)+'</ul></li>');
						} else {
							$("#helangNav").append('<li><a href="javascript:" data-url="'+data[i].menu_url+'"><i class="'+data[i].icon+' mr-10"></i>'+data[i].hk_name+'</a></li>');
						}
					}
					$("#helangNav").css('width',"100%");//给helangNav更改样式
					$("li[lv='B']").each(function(){
						if($("li[lv='B']").find("li").attr("lv")=="B") {
							$("li[lv='B']").find("li[lv='B']").css("text-indent","30px");
						}
					})
				}
			})
		}  
	});

	$("#log-out").click(function(){
		$.ajax({
			type:"POST",
			url :"/admin/login/logOut",
			data:{},
			success:function(data){
				window.location.href = "/admin/login/login";
			}
		})
	})
	
	
	if($(window).width()<1240){
		setTimeout(cshScroll(),6000);
		//初始化滚动条
		function cshScroll(){
			$("#helangNav").css("overflow","auto");
			
		}
		$("#helangNav").mouseenter(function(){
			$(".slimScrollBar").remove();
			$(".slimScrollRail").remove();
			$("script[name=slimsroll]").remove();
		})
	}

	$("#change-pwd").click(function(){
		vinfo_pass();
	})

	//提示信息弹窗
	function vinfo_pass(){
		$(".maksa").css("width",$(window).width());
		$(".maksa").css("height",$(document).height());
		$(".maksa").show();
		$(".popup").css("left",($(window).width()-$(".popup").width())/2);
		$(".popup").css("top",($(window).height()-$(".popup").height())/2);
		$("#popup_5").show();  //简单的触发弹窗事件如果要触发自己想要的弹窗 请修改选择器为ID选择器 两种弹框
	}

	$(".popup_but_msg").click(function(){
		/*$(".maksa").hide();*/
		$("#popup_6").hide();
		$("#popup_5").show();
	})

})
</script>